package org.example.springcloud.controller;

import org.example.springcloud.service.PaymentService;
import org.example.springcloud.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 7/30/21 8:48 AM
 * @Version: 1.0
 */
@RestController
public class FeignController {
    // OpenFeign
    @Resource
    private PaymentService paymentService;

    @GetMapping(value = "/consumer/paymentSQL/{id}")
    public ResultVO paymentSQL(@PathVariable("id") Long id) {
        return paymentService.paymentSQL(id);
    }
}